import { getJobs } from '@/api/system';
import { PaginationQuery, TableData } from '@/types/table';

export default async function useJobs(query: PaginationQuery): Promise<TableData> {
    const { content, totalElements } = await getJobs(query);
    return {
        list: content,
        total: totalElements,
    };
}
